package com.xf.rigister;

import java.util.HashMap;

public class LocalRigister {
    private static HashMap<String,Class> localservice=new HashMap<String,Class>();
    public static void rigist(String interfacename,Class c){
        localservice.put(interfacename,c);
    }
    public static Class get(String interfacename){
        return localservice.get(interfacename);
    }
    public static Boolean is_exist(String interfacename){
        if(localservice.containsKey(interfacename)) return true;
        else return false;
    }
}
